#ifndef NETTALK_D_LOG_H
#define NETTALK_D_LOG_H

#undef LOG_TAG
#define LOG_TAG ""

#define MY_LOG(log_level,func, fmt, ...) \
    printf("%s %s [%s(): %d] " fmt "\n", log_level, LOG_TAG , func, __LINE__, ##__VA_ARGS__)

#define MY_LOGD(fmt, ...)  MY_LOG("D", __func__, fmt,  ##__VA_ARGS__)
#define MY_LOGI(fmt, ...)  MY_LOG("I", __func__, fmt,  ##__VA_ARGS__)
#define MY_LOGW(fmt, ...)  MY_LOG("W", __func__, fmt,  ##__VA_ARGS__)
#define MY_LOGE(fmt, ...)  MY_LOG("E", __func__, fmt,  ##__VA_ARGS__)

#define FUNCTION_IN printf("D %s() +\n",__func__)
#define FUNCTION_OUT printf("D %s() -\n",__func__)

#define FUNCTION_LINE printf("LINE: %d\n", __LINE__)



#endif /* NETTALK_D_LOG_H */

